package
{
	import com.fellong.flash.flar.object.FlarObject;
	
	import org.papervision3d.lights.PointLight3D;
	import org.papervision3d.materials.shadematerials.FlatShadeMaterial;
	import org.papervision3d.materials.utils.MaterialsList;
	import org.papervision3d.objects.primitives.Cube;
	
	public class FlarCube extends FlarObject
	{
		public function FlarCube( light:PointLight3D = null )
		{
			super();
			
			if( light == null )
				light = new PointLight3D();

			var fmat:FlatShadeMaterial = new FlatShadeMaterial(light, 0xff22aa, 0x75104e); // Color is ping. / ピンク色。
			var obj:Cube = new Cube(new MaterialsList({all: fmat}), 16, 16, 16); // 40mm x 40mm x 40mm
			obj.y = 8;
			this.pivot.addChild(obj);
		}
		
	}
}